<template>
	<view class="content" v-html="content">
	
	</view>
</template>

<script>
	import {
		BASE_URL,
		API_URL
	} from '@/env.js';
	export default {
		data() {
			return {
				content:''
			}
		},
		onLoad() {
				this.getContent()
		},
		methods: {
			getContent() {
					let that = this;
					uni.request({
						url: `${BASE_URL}/zz_article/article_detail`,
						data: {
							id: that.$Route.query.id
						},
						success: (res) => {
							console.log(res)
							if (res.data.code == 1) {
								that.content = res.data.data.content
							}
						}
					});
			}
		}
	}
</script>

<style scoped>
	.content{
		padding: 20rpx;
		font-size: 24rpx;
	}
</style>
